Skip to content

docs(self-hosting): check every EKS Pod Identity association before the install - #343

Merged
khaliqgant merged 1 commit into
mainfrom
docs/selfhost-eks-pod-identity-check
Nov 26, 2026
Merged

khaliqgant merged 1 commit into
mainfrom
docs/selfhost-eks-pod-identity-check

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

What

Install on EKS, step 6, gets a Pod Identity check after the settings check, which both the Terraform path and the bring-your-own-AWS path run:

ServiceAccount (namespace agent-relay) Needs Role
agent-relay-worker S3 read/write sessions
agent-relay-session-ingest-api S3 read/write sessions
agent-relay-search-indexer S3 read, OpenSearch write search indexer
agent-relay-session-read S3 read, OpenSearch read search reader
for sa in agent-relay-worker agent-relay-session-ingest-api agent-relay-search-indexer agent-relay-session-read; do
  id="$(aws eks list-pod-identity-associations --cluster-name <cluster name> --region "$AWS_REGION" \
    --namespace agent-relay --service-account "$sa" --query 'associations[0].associationId' --output text)"
  case "$id" in a-*) echo "ok $sa" ;; *) echo "MISSING $sa" ;; esac
done

Done when four lines start with ok. For a MISSING line, the guide gives the aws eks create-pod-identity-association command and which role to use; the agent block asks the human first, since that changes IAM. Troubleshooting gets a no Locker credentials row.

Why

In the EKS rehearsal on 2026-11-26, the team had created its own roles for alleyoop, session-ingest-api, the search indexer and session-read, but had no association for agent-relay-worker. Nothing failed until much later, when the session summary worker logged no Locker credentials: set LOCKER_ACCESS_KEY_ID/LOCKER_SECRET_ACCESS_KEY, or run with EKS Pod Identity. The Terraform in step 4 already creates all five associations, and IAM and Pod Identity documents them. The gap was that the guide never checked them.

agent-relay-alleyoop is left out of the loop: the values-eks-native.yaml profile this guide installs doesn't render it (checked by rendering chart 0.7.54). The guide says its association is harmless.

Dependencies

None: this uses only the aws CLI. The matching diagnostic check, which compares associations against the ServiceAccounts the release actually renders and prints the exact create line, is AgentWorkforce/infra#558.

Tests

vitest run lib/test/selfhost-docs.test.ts lib/test/selfhost-docs-page.test.tsx: 24 passed.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Adds a check in step 6 of Install on EKS that verifies every ServiceAccount has its Pod Identity association before the install proceeds.

The check lists the four ServiceAccounts, their access needs, and the role each uses, then runs aws eks list-pod-identity-associations for each and prints ok or MISSING. A missing association can go unnoticed until much later, like the agent-relay-worker case, which only surfaces as no Locker credentials in session summary worker logs. For missing associations, the guide provides the create-pod-identity-association command with the role to use, and the agent block asks the human before running it since it changes IAM. Troubleshooting gets a no Locker credentials row explaining the cause and fix.

Written for commit cd14a96. Summary will update on new commits.

View guided diff Turn on auto-fix

…he install

Step 6 of Install on EKS gets a ServiceAccount -> needed access table
(worker and session-ingest-api: S3 read/write; search-indexer: S3 read and
OpenSearch write; session-read: S3 read and OpenSearch read) and a loop that
prints ok or MISSING for each, with the create-pod-identity-association
command for a missing one. Terraform (step 4) already creates all of them; the
check catches roles a team created itself, where the worker is the easy one to
miss and only shows up later as "no Locker credentials" in the session
summary worker. Troubleshooting gets that symptom as a row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@composalagent

composalagent Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Composal Verify · PR #343

Skipped Skipped · commit cd14a96d7390

Warning

This request is merged; previous verification results remain in the history.

No high-confidence scenario matches were found; no preview or browser run is needed

Diff assessment: Updates browser-rendered self-hosting documentation with EKS Pod Identity checks, remediation commands, a ServiceAccount table, and a troubleshooting entry for missing worker credentials.

Why no scenarios were selected

No saved scenario matched this change.

Recent verification history
Commit Result Started
cd14a96d7390 Skipped Skipped 2026-11-26 22:24 UTC

@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 80942412-f6dd-401f-acb2-70a708006788
Commits

Reviewing files that changed from the base of the PR and between e520bf1 and cd14a96.

Files selected for processing: 2

  • web/content/self-hosting/install-eks.md
  • web/content/self-hosting/troubleshooting.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 3 flags

Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

@github-actions

Copy link
Copy Markdown
Contributor

Preview deployed!

Environment URL
Web https://43a713b4-agentrelay-web.agent-workforce.workers.dev

This is a Cloudflare Workers preview version of this PR's build.

@khaliqgant
khaliqgant merged commit d1005f8 into main Nov 26, 2026
7 of 8 checks passed
@khaliqgant
khaliqgant deleted the docs/selfhost-eks-pod-identity-check branch November 26, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant